package com.wm.wmim.server.rpc.impl;

import com.wm.wmim.common.dto.RpcRespDTO;
import com.wm.wmim.server.api.bo.resp.UserInfoBO;
import com.wm.wmim.server.api.rpc.UserInfoRpcService;
import com.wm.wmim.server.service.UserInfoService;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

/**
 * @author weiming
 * @date 2024/8/27 21:18
 * @description
 */
@DubboService(version = "1.0.0")
public class UserInfoRpcServiceImpl implements UserInfoRpcService {

    @Resource
    private UserInfoService userInfoService;

    @Override
    public RpcRespDTO<UserInfoBO> loginCheck(String userCode){
        UserInfoBO userInfoBO = userInfoService.loginCheck(userCode);
        return RpcRespDTO.buildSuccess(userInfoBO);
    }

}
